import React, { Component } from "react";
import { Button, Checkbox, Radio, Icon, InputGroup, FormControl, Tree } from "tinper-bee";
import selfNaxios from 'utils/ajaxConfig.js';
import { vendorsDanger } from 'utils/config.js';
import './index.less'

class AllCustomerReferContainer extends Component {
    constructor(props) {
        super(props);
        this.state = {
        }
        this.dataMap = new Map();
    }
    componentDidUpdate(prevProps, prevState, snapshot) {
    }


    sureClick = (value) => {
        this.props.getSelected(this.props.attrcode, value);
        this.props.closeRefer();
    }

    render() {
        let {
            isMultiSelectedEnabled,
            isShow = false,
            closeRefer,
            label,
            refPk,
            filterColumn,
            render,
            selected,
        } = this.props;
        return (
            <div>
                {render && render.call(this, {
                    initValue: selected,
                    sureClick: this.sureClick.bind(this)
                })}
            </div>
        )
    }
}


export default AllCustomerReferContainer;